// 为pinia-storage-persist设置自定义的存储方式

import { StorageInterface } from 'pinia-storage-persist'

export const uniStorage: StorageInterface = {
    setItem(key: string, state: any) {
        return uni.setStorageSync(key, state)
    },
    getItem(key: string) {
        return uni.getStorageSync(key)
    },
    removeItem(key: string) {
        return uni.removeStorageSync(key)
    },
}
